#include <wx/string.h>

#include "unicode.h"
#include "keyword.h"
#include "keyword_filter.h"

KeywordFilter::KeywordFilter(const wxString& name)
{
    this->name = name;
}

bool KeywordFilter::Matches(const Keyword& keyword) const
{
    if (!name.IsEmpty() && wxString_FindI(keyword.name, name) == wxNOT_FOUND)
        return false;

    return true;
}
